<html>
<head>
<style>
html {
  -webkit-filter: brightness(1.1) contrast(120%);
}
#rect {
  background: red;
  width:  100px;
  height:  100px;
}
</style>
</head>
<body>
<div id="rect"></div>
</body>
<script src="../../resources/run-after-display.js"></script>
<script>
function changeBackground() {
    document.getElementById("rect").style.background = "green";
    if (window.testRunner) {
        testRunner.notifyDone();
    }
}

if (window.testRunner) {
    testRunner.dumpAsTextWithPixelResults();
    testRunner.waitUntilDone();
}
runAfterDisplay(changeBackground);
</script>
</html>
